package com.dcy.security.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dcy.security.auth.model.SysUserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author dcy
 * @since 2019-09-06
 */
public interface SysUserInfoMapper extends BaseMapper<SysUserInfo> {

    /**
     * 根据用户id 查询已授权角色列表
     *
     * @param userId
     * @return
     */
    Set<String> getAuthRoleListByUserId(@Param("userId") String userId);


    /**
     * 根据用户id 查询已授权菜单列表
     *
     * @param userId
     * @return
     */
    Set<String> getPermissionListByUserId(@Param("userId") String userId);
}
